package defectsim.resources;

import java.util.HashMap;

import defectsim.resources.DefectResource.ForceType;


public class AllForces {
	
	private HashMap<Enum<ForceType>, Force> forceMap = new HashMap<Enum<ForceType>, Force>();
	
	public void addForce(Force f){
		if(!forceMap.containsValue(f))
			forceMap.put(f.getForceType(), f);
		else
			System.out.println("The force already exists in the list!");
	}
	
	public Force getForce(ForceType fType){
		return forceMap.get(fType);        
	}

	public HashMap<Enum<ForceType>, Force> getAllForces(){
		return forceMap;
	}

}
